<!DOCTYPE html PUBLIC "-//WC//DTD XHTML . Transitional//EN" "http://www.w.org/TR/xhtml/DTD/xhtml-transitional.dtd">
<html xmlns="http://www.w.org//xhtml">
<head>
<script src="../04/js/jquery-1.11.3.min.js" type="text/javascript" charset="utf-8" ></script>
<script src="../04/js/validate-1.14.0.min.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
$().ready(function() {
$("#signupForm").validate({

rules: {

username:{
				required:true,
				remote:{
				    url: "check3.php",
				    type: "post",               
                    dataType: "json",              
                    data: {                    
                        username: function() {
                        return $("#username").val();
                          }
					}
				}
			},

   },
messages: {
	
username: {
required: "请输入姓名",
remote: "请输入姓名，remote"}
},
 
});
}); 
</script>
</head>
<body>
<form id="signupForm" method="post" action="">
<p>
<label for="username">姓氏</label>
<input id="username" name="username" />
</p>

<p>
<input class="submit" type="submit" value="提交"/>
</p>
</form>
</body>
</html>
